package top.ucat.x.system.service.provider;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import top.ucat.x.system.dao.api.SysAliOssDao;
import top.ucat.x.system.entity.SysAliOss;

/**
 * @Auther: Jun
 * @Date: 2020/4/30 14:52
 * @Description:
 */
@Service
public class AliOssServiceImpl implements AliOssService {

    @Autowired
    private SysAliOssDao sysAliOssDao;


    @Override
    public SysAliOss getUseringOssConfiguration() {
        QueryWrapper<SysAliOss> wrapper = sysAliOssDao.getWrapper();
        wrapper.eq("status", true);
        SysAliOss aliOss = sysAliOssDao.getOne(wrapper);
        return aliOss;
    }
}
